package com.olinsports.system.olinsportssystem.manager;

import com.olinsports.system.olinsportssystem.model.CommodityType;
import com.olinsports.system.olinsportssystem.service.CommodityTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/7/22.
 */
@Component
public class CommodityTypeManager {
    @Autowired
    private CommodityTypeService commodityTypeService;
    public List<CommodityType> selectAll(){
        return commodityTypeService.selectAll();
    }
    public int insertAll(CommodityType commodityType){
        return commodityTypeService.insertAll(commodityType);
    }
    public int deleteByKey(int typeKey){
        return commodityTypeService.deleteByKey(typeKey);
    }
    public Map listType(String page, String rows, String sord, String sidx){
        return commodityTypeService.listType(page,rows,sord,sidx);
    }
}
